PROJECT(h+cell)

ADD_LIBRARY(h+core STATIC
		vm.hpp			vm.cpp
		chemistry.hpp	chemistry.cpp
		cell.hpp		cell.cpp cell-steady.cpp
		manip.hpp		manip.cpp )
		

ADD_EXECUTABLE(h+cell 
				main.cpp 
				config.lua chemistry.lua effectors.lua
				config-co2.lua chemistry-co2.lua effectors-co2.lua
)

TARGET_LINK_LIBRARIES(h+cell h+core)
TARGET_LINK_YOCTO(h+cell aqueous lua++ lua mk)

ADD_EXECUTABLE(h+fitp
				h+fitp.cpp 
				config-co2.lua chemistry-co2.lua effectors-co2.lua
)

TARGET_LINK_LIBRARIES(h+fitp h+core)
TARGET_LINK_YOCTO(h+fitp aqueous lua++ lua mk)

INSTALL( TARGETS h+cell h+fitp RUNTIME DESTINATION bin)

